
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import org.jdesktop.swingx.JXDatePicker;
      
      
    public class Estudos extends JPanel{  
         static JLabel label = new JLabel();  
         static JXDatePicker datePicker = new JXDatePicker();  
         JFrame frame;  
        public Estudos(){  
              
        }  
            private static void createAndShowGUI() {  
                label.setText("Calendário.");  
                JFrame frame = new JFrame("Teste JXDatePicker");  
                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);  
                Estudos newContentPane = new Estudos();  
                newContentPane.setOpaque(true);   
                frame.setContentPane(newContentPane);  
                frame.add(label);  
                frame.add(datePicker);  
                frame.pack();  
                frame.setVisible(true);  
        }  
        public static void main(String[] args) {  
            javax.swing.SwingUtilities.invokeLater(new Runnable() {  
                public void run() {  
                    createAndShowGUI();  
                }  
            });  
        }  
        }  